<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";

import authService from "./service/authService";
import { getToken } from "./utils/auth";

onLaunch(() => {
    console.log("App Launch");
    if (getToken()) {
      authService.login();
    }
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});


</script>
<style lang="scss">
  
page {
  background-color: $uni-bg-color;
}
  
</style>

